import java.util.Calendar;
import java.util.Date;

public class FormatOut2 {
    public static void main(String[] args) {
        Date d = new Date();
        Calendar c = Calendar.getInstance();
        System.out.printf("%d %<03d %<02x %<02X %<o %n",10);
        //System.out.printf("%tA %1$tp %1$tF %1$tT %n",0l);
        System.out.printf("%tA %1$tp %1$tF %1$tT %n",d);
        System.out.printf("%tA %1$tp %1$tF %1$tT %n",c);
        System.out.printf("%tA %1$tp %1$tF %1$tT %n",System.currentTimeMillis());
        //七天前
        System.out.printf("%tA %1$tp %1$tF %1$tT %n",System.currentTimeMillis()-(1000*60*60*24*7));
    }
}
